package com.yz.jdd.base.entity;


import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by shibin on 2017/2/13.
 */

public class Template implements Parcelable {
    private String templateId;//模板id
    private String rechargeAmount;//充值金额
    private String donateAmount;//赠送金额

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public void setRechargeAmount(String rechargeAmount) {
        this.rechargeAmount = rechargeAmount;
    }

    public void setDonateAmount(String donateAmount) {
        this.donateAmount = donateAmount;
    }

    public Template() {

    }

    protected Template(Parcel in) {
        templateId = in.readString();
        rechargeAmount = in.readString();
        donateAmount = in.readString();
    }

    public static final Creator<Template> CREATOR = new Creator<Template>() {
        @Override
        public Template createFromParcel(Parcel in) {
            return new Template(in);
        }

        @Override
        public Template[] newArray(int size) {
            return new Template[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(templateId);
        dest.writeString(rechargeAmount);
        dest.writeString(donateAmount);
    }

    public String getTemplateId() {
        return templateId;
    }

    public String getRechargeAmount() {
        return rechargeAmount;
    }

    public String getDonateAmount() {
        return donateAmount;
    }
}
